package com.xbongbong.saas.enums;/*/*/

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * 统计用到的有关工单的枚举
 * @author 魏荣杰
 * @date 2019/7/2 14:35
 * @since v1.0
 * @version v1.0
 */
@Getter
public enum WorkOrderForStatisticsEnum {
    /**
     *
     */
    EXPECTED_TIME("expected_time", "enum.workOrderForStatistics.attrName.expected_time", "expectedTime"),
    ACTUAL_TIME("actual_time", "enum.workOrderForStatistics.attrName.actual_time", "actualTime");

    /**
     * 英文名称
     */
    private String attr;
    /**
     * 中文名称
     */
    private String attrName;
    /**
     * 对应saas中的attr
     */
    private String saasAttr;

    WorkOrderForStatisticsEnum(String attr, String attrName, String saasAttr) {
        this.attr = attr;
        this.attrName = attrName;
        this.saasAttr = saasAttr;
    }

    public String getAttrName() {
        return I18nMessageUtil.getMessage(attrName);
    }
}
